package com.minesweeper.data;

import javax.swing.*;
import java.io.File;

/**
 * @author skniy
 */
public class ImagesData {
    /**
     * 图片内容与变量名一致
     */
    public static ImageIcon ICON_APPLICATION = new ImageIcon("images/icon_application.png");
    public static Icon ICON_BLOCK_BLANK = new ImageIcon("images/block_blank.png");
    public static Icon ICON_BLOCK_BLANK_PRESSED = new ImageIcon("images/block_blank_pressed.png");
    public static Icon ICON_BLOCK_FLAG = new ImageIcon("images/block_flag.png");
    public static Icon ICON_BLOCK_FLAG_PRESSED = new ImageIcon("images/block_flag_pressed.png");
    public static Icon ICON_BLOCK_UNKNOWN = new ImageIcon("images/block_unknown.png");
    public static Icon ICON_BLOCK_UNKNOWN_PRESSED = new ImageIcon("images/block_unknown_pressed.png");
    public static Icon ICON_BLOCK_MINE = new ImageIcon("images/block_mine.png");
    public static Icon ICON_BLOCK_MINE_ERROR = new ImageIcon("images/block_mine_error.png");
    public static Icon ICON_BLOCK_MINE_EXPLOSION = new ImageIcon("images/block_mine_explosion.png");
    public static Icon ICON_GAME_STATUS_NOTHING = new ImageIcon("images/game_status_nothing.png");
    public static Icon ICON_GAME_STATUS_NOTHING_PRESSED = new ImageIcon("images/game_status_nothing_pressed.png");
    public static Icon ICON_GAME_STATUS_FAIL = new ImageIcon("images/game_status_fail.png");
    public static Icon ICON_GAME_STATUS_WIN = new ImageIcon("images/game_status_win.png");
    public static Icon ICON_GAME_STATUS_MOUSE_PRESSED = new ImageIcon("images/game_status_mouse_pressed.png");
    public static Icon[] ICON_LOCAL_MINE_NUM = new ImageIcon[9];
    public static Icon[] ICON_NUMBER = new ImageIcon[11];
    /**
     * 音乐内容与变量名一致
     */
    public static File MUSIC_MINE_BOOM = new File("images/mine_boom.wav");
    public static File MUSIC_WIN = new File("images/win.wav");
    public static File MUSIC_BACKGROUND = new File("images/background.wav");
    public static File MUSIC_CHANGE_FLAG = new File("images/change_flag.wav");
    public static File MUSIC_CLICK_BLOCK = new File("images/click_block.wav");

    static {
        //初始化9个周边地雷的图标
        for (int i = 0; i < ICON_LOCAL_MINE_NUM.length; i++) {
            ICON_LOCAL_MINE_NUM[i] = new ImageIcon("images/block_localCount_" + i + ".png");
        }
        //初始化10个数字的图标
        for (int i = 0; i < ICON_NUMBER.length; i++) {
            ICON_NUMBER[i] = new ImageIcon("images/number_" + i + ".png");
        }
    }

}
